<div class="page_header clearfix">
    <h1><?php echo $cms_category_default['name'] ?></h1>
</div>
<div class="page_content">
    <?
    $count = 0;
	if (!isset($cms_arr) || count($cms_arr) == 0)
	{
		echo "<div style='padding-left:40px;'>Thông tin đang được cập nhật. Quý khách vui lòng vào lại sau.</div>";
	}
	else
	{
		foreach ($cms_arr as $cms_obj)
		{
			$count ++;
			if (count($cms_arr) == 1)
			{
				include("cms_view.php");
			}
			else 
			{
			?>
                <div class="page_section case_study <?=($count % 2 == 0)?"last":""?>">
                    <div class="case_study_thumbnail">
                        <div class="case_study_thumbnail_inner">
                            <a href="/uploads/cms/<?=$cms_obj['picture']?>" rel='example_group'>
                                <img src="/uploads/cms/thm_<?=$cms_obj['picture']?>" alt="<?=$cms_obj['name']?>">
                            </a>
                        </div>
                    </div>
                    <div class="case_study_intro">
                        <p><?=$cms_obj['description']?></p>
                    </div>
                    <p class="action">
                        <a class="read w4l_internal_link" href="<? echo url_for('plans/permalink?cms_category_id='.$cms_category['cms_category_id'].'&cms_id='.$cms_obj['cms_id'])?>">Chi tiết</a>
                        <?
                        // <a class="download w4l_internal_link" href="">Link</a>
                        ?>
                    </p>
                </div>
			<?
			}
		}
	}
    ?>
</div>